<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/9/20
 * Time: 9:36
 */

namespace app\index\controller;
use think\Controller;

class Qwe extends Controller
{
    public function Qwe(){

        $request = request();

        if($request->isPost()){
            $data = input('post.');
            if(!captcha_check($data['jjjjj'])) {
                // 校验失败
                $this->error('验证码不正确');
            }else{
                echo $this->success('验证码正确');
            }
        }




       return $this->fetch();
    }

}